package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 试卷区域规则
 */
@Data
public class ExamPaperAreaRule implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 区域id
     */
//    @NotNull(message = "区域id不能为空")
    private Integer areaId;

    /**
     * 题库id
     */
//    @NotNull(message = "题库id不能为空")
    private Integer questionBankId;

    /**
     * 题目类型
     */
//    @NotNull(message = "题目类型id不能为空")
    private Integer questionType;

    /**
     * 题干类型
     */
    private Integer stemType;

    /**
     * 题目难度
     */
    private Integer difficulty;

    /**
     * 题目数量
     */
    private Integer questionCount;

    /**
     * 每题分数
     */
    private Double grade;

    /**
     * 顺序
     */
    private Integer sort = 1;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    //题库分类名
    private String category;


    //题库分类id
    private Integer categoryId;
    //题库公开状态
    private Integer questionBankState;

    private String questionBankName;

    private Integer trainingOrganizationId;

}